package com.nuit.cxl;

public class Main {
    public static void main(String[] args) throws ClassNotFoundException {

        System.out.println("Hello world!");

        Person person = new Person();
        person.setAge(20);
        System.out.println(person.getAge());

        Class c1 = Class.forName("com.nuit.cxl.Person");

        Class c2 = Person.class;
        Class c3 = person.getClass();


        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c1.hashCode());
        System.out.println(c2.hashCode());
        System.out.println(c3.hashCode());
        System.out.println(Class.forName("com.nuit.cxl.Person2").hashCode());
    }
}

class Person2 {
    public String name;
    public int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}